package bridge.phone;

public class HuaweiPhone extends Phone {

	public HuaweiPhone(Memory memory) {
		super(memory);
	}

	@Override
	public void installMemory() {
		System.out.print("Huawei ");
		this.getMemory().installMemory();
	}

}

class XiaomiPhone extends Phone {

	public XiaomiPhone(Memory memory) {
		super(memory);
	}

	@Override
	public void installMemory() {
		System.out.print("小米 ");
		this.getMemory().installMemory();
	}

}
